﻿#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>

typedef double Real;

typedef struct {
	int h;
	int m;
}Time;

Time time_read()
{
	Time t;
	scanf("%d:%d", &t.h, &t.m);
	return t;
}

typedef struct
{
	Time time;
}Context;
Context context;

void read_data(Context* ctx)
{
	ctx->time = time_read();
}
 
void solve(Context* ctx)
{
	if ((ctx->time.h % 24< 12)||(ctx->time.h==12 && ctx->time.m==0))
		printf("Only %02d:%02d.  Too early to Dang.", ctx->time.h, ctx->time.m);
	else {
		ctx->time.h %= 24;
		for (int i = 12; i < ctx->time.h; ++i)
			printf("Dang");
		if(ctx->time.m!=0)
			printf("Dang");
	}
	printf("\n");
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-165.txt", "r", stdin);
	read_data(&context);
	solve(&context);
	return 0;
}
